function result = runCalcPhi(t, r)
%RUNCALC Summary of this function goes here
%   Detailed explanation goes here

config;

% Use global parameter:
global isPhi0Cached;

disp('Start calculation...');
tic;
% initialize phi0 cache
if isPhi0Cached
    buildPhi0Cache();
end
result = phi(t, r);
toc;
disp('Calculation done.');

end

